<header class="auth-setting-header">
    <h1>店铺认证</h1>
</header>
<div class="tools-row clearfix"></div>
                <div class="tools-row clearfix">
                    <div class="col-xs-4 cf-left">
                        <div class="btn-group pull-left" role="group" aria-label="...">
                            <a data-ng-click="partnerCtrl.tabChange('checking')" data-ng-class="{'active':partnerCtrl.status=='checking'}"  class="btn btn-default">待认证</a>
                            <a data-ng-click="partnerCtrl.tabChange('success')" data-ng-class="{'active':partnerCtrl.status=='success'}" class="btn btn-default">已认证</a>
                            <a data-ng-click="partnerCtrl.tabChange('failure')" data-ng-class="{'active':partnerCtrl.status=='failure'}" class="btn btn-default">未通过</a>
                        </div>
                    </div>
<!--                     <div class="col-xs-8">
                        <form class="form-inline pull-right">
                            <div class="form-group">
                                <input type="text" data-ng-model='partnerCtrl.dataFilter' class="form-control" placeholder="商家名称/品牌名称"></div>

                            <a class="ml-sm btn btn-warning pull-right" data-ng-show="partnerCtrl.dataFilter">清除筛选条件</a>

                        </form>
                    </div> -->
                </div>
                <div class="tools-row clearfix">
                  <div class="col-xs-4" data-ng-show="partnerCtrl.toggleCheckbox||partnerCtrl.showOperationButton">
                          <a class="btn btn-success" data-ng-click="partnerCtrl.approve()">通过</a>
                          <a class="btn btn-danger" data-ng-click="partnerCtrl.decline()">否决</a>
                  </div>
                </div>
                <div class="table-padding">
                 <table class="table table-bordered table-condensed">
                    <tr >
                      <td ng-show="partnerCtrl.status=='checking'" style="width:2%"  data-ng-click="partnerCtrl.toggleAllCheckbox()"><checkbox  ng-model="partnerCtrl.toggleCheckbox" ></checkbox></td>
                      <td>店铺名称</td>
                      <td>企业名称</td>
                      <td>单位注册地址</td>
                      <td>营业执照号码</td>
                      <td>法人代表</td>
                      <td>营业执照扫描件</td>
                      <td data-ng-show="partnerCtrl.status=='checking'">操作</td>
                      <td data-ng-show="partnerCtrl.status!='checking'">状态</td>
                    </tr>
                    <tr ng-repeat="partner in partnerCtrl.partners">
                      <td data-ng-click="partnerCtrl.showOperation(partner.$selected)" ng-show="partnerCtrl.status=='checking'">
                          <checkbox ng-model="partner.$selected"></checkbox> 
                      </td>
                      <td>
                        <span ng-bind="::partner.partner_name">
                        </span>
                      </td>
                      <td>
                        <span ng-bind="::partner.company_name">
                        </span>
                      </td>
                      <td>
                        <span ng-bind="::partner.register_address">
                        </span>
                      </td>
                      <td>
                        <span ng-bind="::partner.lisence_number">
                        </span>
                      </td>
                      <td>
                        <span data-ng-bind="partner.responsible_name">
                          
                        </span>
                      </td>
                      <td>
                        <a data-ng-click="partnerCtrl.reviewImg(partner.lisence_img_url)">查看申请图片</a>
                      </td>
                      <td ng-show="partnerCtrl.status!='checking'">
                        <span>
                          <a class="btn btn-xs" data-ng-class="{'btn-success':partnerCtrl.status=='success','btn-danger':partnerCtrl.status=='failure'}">{{partnerCtrl.status=='success'?'已认证':'未通过'}}</a>
                        </span>
                      </td>
                      <td style="white-space: nowrap" data-ng-show="partnerCtrl.status=='checking'">
                        <div class="buttons" ng-show="!rowform.$visible">
                          <a data-ng-click="partnerCtrl.approve(partner)" class="btn btn-success">
                            通过
                          </a>
                          <a data-ng-click="partnerCtrl.decline(partner)" class="btn btn-danger">
                            否决
                          </a>
                        </div>  
                      </td>
                    </tr>
                  </table>
                  <p class="text-center" data-ng-show="partnerCtrl.partners.length<1">暂无内容</p>

                  <uib-pagination ng-if='partnerCtrl.pagination.total_item' ng-change="partnerCtrl.paginationChange()" total-items="partnerCtrl.pagination.total_item" items-per-page="partnerCtrl.pagination.page_size" ng-model="partnerCtrl.pagination.page_no" max-size="partnerCtrl.pagination.max_size"  class="pagination-sm" boundary-link-numbers="true" rotate="false" next-text="下一页" previous-text="上一页"></uib-pagination>

                </div>